//
//  ScrollWithImage.h
//  LunBoTuScroll
//
//  Created by dllo on 15/11/6.
//  Copyright (c) 2015年 Zebra. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface ScrollWithImage : UIView<UIScrollViewDelegate>
@property (nonatomic, retain)UIScrollView *scroll;
- (void)setArrayWithImage:(NSArray *)array;
@property (nonatomic, retain)NSTimer *timer;
@property (nonatomic, assign)NSInteger imageNum;

- (void)autoTurnImagePage:(NSInteger)timeInterval;
@property (nonatomic, retain)UIPageControl *pageControl;
@property (nonatomic,retain)NSMutableArray *titleArray;
@property (nonatomic, retain)NSMutableArray *mutableArray;
@property (nonatomic, retain)UILabel *label;

- (instancetype)initWithFrame:(CGRect)frame withArray:(NSArray *)array;
- (instancetype)initWithFrame:(CGRect)frame withArray:(NSArray *)array withTitle:(NSArray *)titleArr;
- (void)pageControl:(NSInteger)pageNum;

/*************************************
 
 接口使用方法
 
 1.初始化一个scrollWithImage
 2.将图片名或URL存入数组中
 3.调用initWithFrame WithArray方法array参数为存url的数组
 
 实例:
 
 ScrollWithImage *scrollWithImage = [[ScrollWithImage alloc] initWithFrame:[UIScreen mainScreen].bounds withArray:array];
 [self.view addSubview:scrollWithImage];
 [scrollWithImage release];
 
 *************************************/







@end
